<?php /*
  Template Name: eventos
 */ ?>
<?php get_header(); ?>


<br /><br /><br />
<div class="container">
    <div class="sixteen columns">


            <?php
            if (have_posts()) :
                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                query_posts("category_name=eventos&paged=$paged");
                while (have_posts()) : the_post();
                    ?>     

<div class="evento">
                
                        <div class="fotoevento">
                    <?php
                    if (has_post_thumbnail()) {
                        ?>

                            <a href="<?php the_permalink() ?>"><img class="scale-with-grid" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&amp;h=200&amp;w=200&amp;zc=1" alt=""/></a>
                            <?php } else { ?>
                            <a href="<?php the_permalink() ?>"><img class="scale-with-grid" src="<?php bloginfo('template_directory'); ?>/images/dummy.jpg" alt="" /></a>
                        <?php } ?>
</div>
                        <div class="eventocontenido">

                            <div class="btitle">

                                <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

                            </div>

                            <div class="boxentry">

                                <?php the_excerpt('Leer Mas+'); ?><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="3" allowTransparency="true" style="border:none; overflow:hidden; width:76px; height:30px"></iframe>


                            </div>
                        </div>
</div>
                    

                <?php endwhile; ?>
            <?php endif; ?>
           <?php wp_pagenavi(); ?> 



            <div class="clear"></div>


        </div>
    </div>
    <br /><br /><br />

	<?php get_footer(); ?>


